﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bukstor.Biz;
using System.Text;
using Bukstor.UI.Utilidades;

namespace Bukstor.UI
{
    public partial class CatTitulos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        { 
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Response.Redirect("CatTitulo.aspx?titulo=" + gvTitulos.DataKeys[gvTitulos.SelectedIndex].Value, true);
        }

        public IEnumerable<CatTitulosRow> TraerTitulos(int subcategoria)
        {
            return TraerLibros.PorSubcategoria(subcategoria);
        }
    }
}
